package cn.fx.framework.exception;

import cn.fx.framework.cons.ErrorCodeMessage;

/**
 * 查询实体时，若没有找到抛出这个异常
 * @author ljh
 * @date 2017/12/17 17:40
 */
public class EntityNotFoundException extends BaseException {
    public EntityNotFoundException(int code, String message) {
        super(code, message +
                "@{" + ErrorCodeMessage.ENTITY_NOT_FOUND_EXCEPTION.getMessage() + "}");
    }

    public EntityNotFoundException(String message){
        this(ErrorCodeMessage.ENTITY_NOT_FOUND_EXCEPTION.getCode(), message);
    }
}
